<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of VMT_MeanXS2GE_3D</title>
  <meta name="keywords" content="VMT_MeanXS2GE_3D">
  <meta name="description" content="Outputs the mean cross section (3-D) from VMT to Google Earth (saved as a">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html &copy; 2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
  <script type="text/javascript">
    if (top.frames.length == 0) { top.location = "../index.html"; };
  </script>
</head>
<body>
<a name="_top"></a>
<!-- menu.html trunk -->
<h1>VMT_MeanXS2GE_3D
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>Outputs the mean cross section (3-D) from VMT to Google Earth (saved as a</strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>function VMT_MeanXS2GE_3D(A,V,pathstr,filestr,vscale,voffset) </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"> Outputs the mean cross section (3-D) from VMT to Google Earth (saved as a
 .kmz file in the VMTProcFiles directory).  The file is then opened in
 Google Earth for viewing.

 P.R. Jackson, USGS, 1-16-09</pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="VMT.html" class="code" title="function varargout = VMT(varargin)">VMT</a>	--- THE VELOCITY MAPPING TOOLBOX ---</li></ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function VMT_MeanXS2GE_3D(A,V,pathstr,filestr,vscale,voffset)</a>
0002 <span class="comment">% Outputs the mean cross section (3-D) from VMT to Google Earth (saved as a</span>
0003 <span class="comment">% .kmz file in the VMTProcFiles directory).  The file is then opened in</span>
0004 <span class="comment">% Google Earth for viewing.</span>
0005 <span class="comment">%</span>
0006 <span class="comment">% P.R. Jackson, USGS, 1-16-09</span>
0007 
0008 
0009 <span class="comment">%Output the mean cross section to Google Earth</span>
0010 
0011 <span class="comment">%lncol = ['-r';'-b';'-g';'-c';'-m';'-y';'-k';'-w'];</span>
0012 gex = nanmean(V.mcsX,1);
0013 gey = nanmean(V.mcsY,1);
0014 gez = vscale.*(voffset-V.mcsBed);
0015 utmzonemat = repmat(A(1).Comp.utmzone(2,:),size(gex')); <span class="comment">%</span>
0016 [mcslat,mcslon] = utm2deg(gex',gey',utmzonemat);
0017 <span class="keyword">if</span> ~isempty(pathstr)
0018     outfile = [pathstr <span class="string">'\'</span> filestr(1:end-4)];
0019 <span class="keyword">else</span>
0020     outfile = [filestr(1:end-4)];
0021 <span class="keyword">end</span>
0022 GEplot_3D(outfile,mcslat,mcslon,gez); <span class="comment">%lncol(n,:)</span>
0023 eval([<span class="string">'!'</span> outfile <span class="string">'.kmz'</span>])</pre></div>
<hr><address>Generated on Wed 04-Jun-2014 14:21:02 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" target="_parent">m2html</a></strong> &copy; 2005</address>
</body>
</html>